package me.ratel.demo.eBook.infrastructure.persistence.hibernate;

import java.io.Serializable;

/**
 * @author Administrator
 * @time 2016/6/14 23:16
 */
public interface IGenericDao <T, PK extends Serializable> {
    T get(PK id);

    PK save(T entity);

    void update(T entity);

    void delete(T entity);
}
